//
//  BZMainOrderDesTableViewCell.m
//  penzer
//
//  Created by caiyc on 2018/11/15.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZMainOrderDesTableViewCell.h"
#import "BZComenOrderStatusView.h"

@interface  BZMainOrderDesTableViewCell()
@property (weak, nonatomic) IBOutlet UIStackView *stackVIew;

@end


@implementation BZMainOrderDesTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    NSMutableArray<BZComenOrderStatusView *> *View_Array=[NSMutableArray array];;
    NSArray *images = @[@"组 501",@"组 502",@"组 503",@"组 504"];
    NSArray *titles = @[@"待发货",@"待收货",@"待评价",@"退款/售后"];
    self.stackVIew.distribution = UIStackViewDistributionFillEqually;;
    for(int i=0;i<images.count;i++){
        BZComenOrderStatusView *comenView = [[BZComenOrderStatusView alloc]init];
        NSString *imagStr = images[i];
        comenView.image.image = [UIImage imageNamed:imagStr];
        comenView.title.text = titles[i];
        comenView.title.textColor = RGB(51, 51, 51);
       // comenView.title.font = [UIFont systemFontOfSize:14 weight:ui];
        [View_Array addObject:comenView];
        [self.stackVIew addArrangedSubview:comenView];
      //  [self.stackVIew addSubview:comenView];
    }
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
